import service from '@/utils/request'

export const createOdsKafka = (data) => {
  return service({
    url: '/odsKafka/createOdsKafka',
    method: 'post',
    data
  })
}

export const deleteOdsKafka = (data) => {
  return service({
    url: '/odsKafka/deleteOdsKafka',
    method: 'delete',
    data
  })
}

export const deleteOdsKafkaByIds = (data) => {
  return service({
    url: '/odsKafka/deleteOdsKafkaByIds',
    method: 'delete',
    data
  })
}

export const updateOdsKafka = (data) => {
  return service({
    url: '/odsKafka/updateOdsKafka',
    method: 'put',
    data
  })
}

export const findOdsKafka = (params) => {
  return service({
    url: '/odsKafka/findOdsKafka',
    method: 'get',
    params
  })
}

export const getOdsKafkaList = (params) => {
  return service({
    url: '/odsKafka/getOdsKafkaList',
    method: 'get',
    params
  })
}

export const getAllOdsKafkas = (params) => {
  return service({
    url: '/odsKafka/getAllOdsKafkas',
    method: 'get',
    params
  })
}

export const getOdsKafka = (data) => {
  return service({
    url: '/odsKafka/getOdsKafka',
    method: 'post',
    data
  })
}


export const initOdsKafka = () => {
  return service({
    url: '/odsKafka/initOdsKafka',
    method: 'get',
  })
}

export const testOdsKafka = (data) => {
  return service({
    url: '/odsKafka/testOdsKafka',
    method: 'post',
    data
  })
}
export const startOdsKafka = (data) => {
  return service({
    url: '/odsKafka/startOdsKafka',
    method: 'post',
    data
  })
}
export const stopOdsKafka = (data) => {
  return service({
    url: '/odsKafka/stopOdsKafka',
    method: 'post',
    data
  })
}
